toggle menu
Core
0.9.1
js
switch theme
Core
[root]
Abort
Controller()
array()
array
Buffer()
as
Byte
Array()
as
String()
Async
Storage
async
Task()
await
Connection()
build
Object()
channel
From
Stream()
CLIENT_CONFIG
client
Exception
To
Json()
client
Exception
To
Json
Pretty()
collect
Async
Flow()
collect
Flow()
common
Fetch()
config
Builder()
consumer
Companion()
Core
Js
Core
Js
Client
Engine
file
Request()
file
Request
To
Json()
file
Request
To
Json
Pretty()
file
Request
With
Content
Type()
file
Request
With
Name()
file
Request
With
Progress()
get
Body
Bytes()
get
Core
Client()
Js
Web
Socket
Session
list()
map
To
Ktor()
React
Native
Settings
Companion
read
Body()
read
Body
Browser()
read
Chunk()
setup
React
Native()
setup
React
Native
Storage()
stream()
task
Builder()
task
Companion()
task
Config
Builder()
Tasks
Tasks
Examples
to
Raw()
io.
telereso.
kmp.
core
[android]destructive
Migration
Synchronous()
[android]init
Logger()
[ios]destructive
Migration
Synchronous()
[ios]init
Logger()
[ios]Tasks
[jvm]destructive
Migration
Synchronous()
[jvm]Tasks
Android
Platform
App
Events
Observer
Companion
as
Common
Flow()
await()
await
All()
await
Or
Null()
await
Or
Null
All()
Browser
Platform
Common
Flow
Job
compare()
compare
Check()
compare
Json()
compare
Json
Arrays()
compare
Json
Objects()
compare
Json
Primitives()
Compare
Result
Config
Builder
Companion
Consumer
Companion
contains()
Context
Scope
Companion
Core
Client
Companion
debug
Logger()
debug
Logger
Internal()
Difference
Dispatchers
Provider
Environment
STAGING
PRODUCTION
Flows
get()
get
Platform()
Http
http
Client()
In
Memory
Setting
Internal
Task
IOSPlatform
is
React
Native
Platform
is
Simulator()
Jvm
Platform
Lazy
Suspend
Log
Map
Settings
Listener
minus
Assign()
Node
Js
Platform
Observable
Settings
Platform
Run
Blocking
set()
Settings
Companion
Listener
Settings
Impl
Sql
Driver
Factory
Task
Builder
Companion
Task
Config
Companion
Tasks
Examples
Throwable
Serializer
Tolerance
Policy
to
NSError()
io.
telereso.
kmp.
core.
extensions
destructive
Migration()
get
Or
Default()
get
Tables()
is
False()
is
Null()
is
True()
sync()
io.
telereso.
kmp.
core.
models
as
Client
Exception()
Client
Exception
Companion
content
Type()
Error
Body
Expirable
Value
File
Request
get
Error
Body()
Jwt
Payload
to
Client
Exception()
Core
/
[root]
/
JsWebSocketSession
Js
Web
Socket
Session
js
internal
class
JsWebSocketSession
(
val
coroutineContext
:
CoroutineContext
,
val
websocket
:
WebSocket
)
:
DefaultWebSocketSession
Members
Members & Extensions
Constructors
Js
Web
Socket
Session
Link copied to clipboard
js
constructor
(
coroutineContext
:
CoroutineContext
,
websocket
:
WebSocket
)
Properties
_close
Reason
Link copied to clipboard
js
private
val
_closeReason
:
CompletableDeferred
<
CloseReason
>
_incoming
Link copied to clipboard
js
private
val
_incoming
:
Channel
<
Frame
>
_outgoing
Link copied to clipboard
js
private
val
_outgoing
:
Channel
<
Frame
>
close
Reason
Link copied to clipboard
js
open
override
val
closeReason
:
Deferred
<
CloseReason
?
>
coroutine
Context
Link copied to clipboard
js
open
override
val
coroutineContext
:
CoroutineContext
extensions
Link copied to clipboard
js
open
override
val
extensions
:
List
<
WebSocketExtension
<
*
>
>
incoming
Link copied to clipboard
js
open
override
val
incoming
:
ReceiveChannel
<
Frame
>
masking
Link copied to clipboard
js
open
override
var
masking
:
Boolean
max
Frame
Size
Link copied to clipboard
js
open
override
var
maxFrameSize
:
Long
outgoing
Link copied to clipboard
js
open
override
val
outgoing
:
SendChannel
<
Frame
>
ping
Interval
Millis
Link copied to clipboard
js
open
override
var
pingIntervalMillis
:
Long
timeout
Millis
Link copied to clipboard
js
open
override
var
timeoutMillis
:
Long
websocket
Link copied to clipboard
js
private
val
websocket
:
WebSocket
Functions
channel
From
Stream
Link copied to clipboard
js
internal
fun
CoroutineScope
.
channelFromStream
(
stream
:
ReadableStream
<
Uint8Array
>
)
:
ByteReadChannel
flush
Link copied to clipboard
js
open
suspend override
fun
flush
(
)
is
Reserved
Status
Code
Link copied to clipboard
js
private
fun
Short
.
isReservedStatusCode
(
)
:
Boolean
read
Body
Link copied to clipboard
js
internal
suspend
fun
CoroutineScope
.
readBody
(
response
:
Response
)
:
ByteReadChannel
read
Body
Browser
Link copied to clipboard
js
internal
suspend
fun
CoroutineScope
.
readBodyBrowser
(
response
:
Response
)
:
ByteReadChannel
send
Link copied to clipboard
js
open
suspend
fun
send
(
frame
:
Frame
)
start
Link copied to clipboard
js
open
override
fun
start
(
negotiatedExtensions
:
List
<
WebSocketExtension
<
*
>
>
)
terminate
Link copied to clipboard
js
open
override
fun
terminate
(
)